<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template/DefaultTemplate.xhtml">
        <ui:define name="content">
            <h:form>
                <p:panel toggleable="true" id="customerAccountCreate" header="Customer Account">
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.CreateCustomerAccountEntityLabel_creditBalance}" for="creditBalance" />
                        <h:outputText id="creditBalance" value="#{customerAccountEntityController.selected.creditBalance}" title="#{bundle.CreateCustomerAccountEntityTitle_creditBalance}" />

                        <h:outputLabel value="#{bundle.CreateCustomerAccountEntityLabel_cashBalance}" for="cashBalance" />
                        <h:outputText id="cashBalance" value="#{customerAccountEntityController.selected.cashBalance}" title="#{bundle.CreateCustomerAccountEntityTitle_cashBalance}" />

                    </h:panelGrid>
                </p:panel>    
                <br />
                <ui:include src="/entities/creditTermEntity/View.xhtml"/>
                <br />   
                <p:commandButton action="/entities/customerEntity/View.xhtml" value="View Customer" ajax="false">
                </p:commandButton>
                <p:commandButton action="/entities/customerAccountEntity/List.xhtml" value="List All Customer Accounts" ajax="false"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>